import { post,get} from '@api/base'
// 通用post请求
export const commonPost = (data) => {
  return post({
    url: data.url,
    params: data.payload,
    timeout: 65000,
  })
}

// 通用get请求
export const commonGet = (data) => {
  return get({ 
    url: data.url,
    params: data.params,
    timeout: 65000,
  })
}

export const checkversion = (data) => {
  return postnoloading({
    url: data.url,
    params: data.payload,
    timeout: 65000,
  })
}

export const readCardDetail = (data) => {
  return post({
    url: data.url,
    params: data.payload
  })
}

export const queryDepartment = (data) => {
  return post({
    url: data.url,
    params: data.payload
  })
}

export const queryDoctor = (data) => {
  return post({
    url: data.url,
    params: data.payload
  })
}

export const queryTime = (data) => {
  return post({
    url: data.url,
    params: data.payload
  })
}

export const lockAppointment = (data) => {
  return post({
    url: data.url,
    params: data.payload
  })
}

